package com.brambila.releaseme;

import com.brambila.interfaces.IFloor;
import com.brambila.interfaces.ITerrainImages;

import android.graphics.Bitmap;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.PointF;

public abstract class GameObject implements ITerrainImages{

	private PointF position;
	private Bitmap bitmap;
	protected Paint paintText, paintBitmap;

	public GameObject(PointF position, Bitmap bitmap) {

		this.setPosition(position.x, position.y);
		this.bitmap = bitmap;

		paintText = new Paint();
		paintText.setTextSize(PLAYER.getWidth() * .8f);
		paintText.setColor(Color.WHITE);
		
		paintBitmap = new Paint();
		paintBitmap.setColor(Color.WHITE);
	}

	public abstract void drawText(IFloor[][] mapWithMatrix, int xMatrix, int yMatrix);

	public PointF getPosition() {
		return position;
	}

	public void setPosition(float x, float y) {
		this.position = new PointF(x, y);
	}

	public Bitmap getBitmap() {
		return bitmap;
	}
}